<html>

<head>
<meta name=标题 content="">
<meta name=关键词 content="">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 15 (filtered)">
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:"Courier New";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Times;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@DengXian";}
@font-face
	{font-family:"Microsoft YaHei";
	panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
	{font-family:Menlo;
	panose-1:2 11 6 9 3 8 4 2 2 4;}
@font-face
	{font-family:"\@Microsoft YaHei";}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:12.0pt;
	font-family:DengXian;}
code
	{font-family:Courier;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	text-indent:21.0pt;
	font-size:12.0pt;
	font-family:DengXian;}
p.a, li.a, div.a
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	line-height:200%;
	font-size:12.0pt;
	font-family:"Microsoft YaHei";}
.MsoChpDefault
	{font-family:DengXian;}
 /* Page Definitions */
@page WordSection1
	{size:595.0pt 842.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	layout-grid:15.6pt;}
div.WordSection1
	{page:WordSection1;}
 /* List Definitions */
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
-->
</style>

</head>

<body lang=ZH-CN style='text-justify-trim:punctuation'>

<div class=WordSection1 style='layout-grid:15.6pt'>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-size:14.0pt;line-height:200%;font-family:"Microsoft YaHei"'>tune2fs</span></b></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span lang=EN-US
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>tune2fs</span><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>允许系统管理员在<span
lang=EN-US>Linux ext2</span>、<span lang=EN-US>ext3</span>或<span lang=EN-US>ext4</span>文件系统上调整各种可调的文件系统参数。这些选项的当前值可以使用<span
lang=EN-US>-l</span>选项显示，也可以通过使用<span lang=EN-US>dumpe2fs (8)</span>程序显示。</span></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>此命令的适用范围：<span
lang=EN-US>RedHat</span>、<span lang=EN-US>RHEL</span>、<span lang=EN-US>Ubuntu</span>、<span
lang=EN-US>CentOS</span>、<span lang=EN-US>SUSE</span>、<span lang=EN-US>openSUSE</span>、<span
lang=EN-US>Fedora</span>。</span></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
line-height:200%;text-autospace:none'><span lang=EN-US style='font-family:"Microsoft YaHei";
color:black;vertical-align:sub'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>1</span></b><b><span style='font-family:
"Microsoft YaHei"'>、语法</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>tune2fs  [</span></b><b><span
style='font-family:"Microsoft YaHei"'>选项<span lang=EN-US>]  device</span></span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>tune2fs  [ -l ]  [ -c
max-mount-counts ]  [ -e errors-behavior ]  [ -f ]  [ -i
interval-between-checks ]  [ -j ]  </span></b></p>

<p class=MsoNormal style='margin-left:21.0pt;text-indent:21.0pt;line-height:
200%'><b><span lang=EN-US style='font-family:"Microsoft YaHei"'>[ -J
journal-options ]  [ -m reserved-blocks-percentage ]  [-o 
[^]mount-options[,...]  ]  [ -r reserved-blocks-count ]  </span></b></p>

<p class=MsoNormal style='margin-left:21.0pt;text-indent:21.0pt;line-height:
200%'><b><span lang=EN-US style='font-family:"Microsoft YaHei"'>[ -s
sparse-super-flag ]  [ -u user ]  [ -g group ]  [ -C mount-count ]  [ -E
extended-options ]  [  -L  volume-name  ]</span></b></p>

<p class=MsoNormal style='margin-left:21.0pt;text-indent:21.0pt;line-height:
200%'><b><span lang=EN-US style='font-family:"Microsoft YaHei"'>[  -M 
last-mounted-directory  ]  [ -O [^]feature[,...]  ]  [ -T time-last-checked ]  [
-U UUID ]  device</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>2</span></b><b><span style='font-family:
"Microsoft YaHei"'>、选项列表</span></b></p>

<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>选项</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border:solid windowtext 1.0pt;
  border-left:none;background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>说明</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-l</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示设备的详细信息</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-c</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>max-mount-counts</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>检查文件系统之前，调整最大挂载次数。如果最大挂载计数为<span
  lang=EN-US>0</span>或<span lang=EN-US>-1</span>，<span lang=EN-US>e2fsck(8)</span>和内核将忽略文件系统的挂载次数。如果对强制检查文件系统的挂载计数，将避免在使用日志文件系统时一次检查所有文件系统。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-C</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>mount-count</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置文件系统的挂载次数，如果设置为比<span
  lang=EN-US>-c</span>选项设置的<span lang=EN-US>max-mount-counts</span>参数更大的值，<span
  lang=EN-US>e2fsck(8)</span>将在下次重新启动时检查文件系统。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-e </span></b><u><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>error-behavior</span></u></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>当检测到错误时，更改内核代码的行为。在任何情况下，文件系统错误都会导致<span
  lang=EN-US>e2fsck(8)</span>在下一次引导时检查文件系统。错误行为可以是下列行为之一：</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>continue</span><span style='font-family:
  "Microsoft YaHei"'>，继续执行正常执行。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>remount-ro</span><span
  style='font-family:"Microsoft YaHei"'>，重新以只读的方式挂载。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>panic</span><span style='font-family:
  "Microsoft YaHei"'>，产生<span lang=EN-US>kernel panic</span>。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-E</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>extended-options</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>为文件系统设置扩展选项。扩展选项是逗号分隔的，可以使用相等号<span
  lang=EN-US>(‘=’)</span>符号进行参数化。支持下列扩展选项：</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>stride=stride-size</span><span
  style='font-family:"Microsoft YaHei"'>，为<span lang=EN-US>RAID</span>数组配置具有步长文件系统块的文件系统。这是在移动到下一个磁盘之前读取或写入磁盘的块数。这主要影响文件系统元数据<span
  lang=EN-US>(</span>如位图<span lang=EN-US>)</span>在<span lang=EN-US>mke2fs(2)</span>时间的放置，以避免将它们放置在单个磁盘上，这可能会损害性能。它也可以被块分配器使用。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>stripe_width=stripe-width</span><span
  style='font-family:"Microsoft YaHei"'>，为<span lang=EN-US>RAID</span>数组配置文件系统，每条带宽的文件系统块。这通常是<span
  lang=EN-US>stride-size *N</span>，其中<span lang=EN-US>N</span>是<span
  lang=EN-US>RAID</span>中数据磁盘的数目<span lang=EN-US>(</span>例如<span lang=EN-US>RAID
  5 N+1</span>，<span lang=EN-US>RAID 6 N+2)</span>。这允许块分配器在写入数据时防止对<span
  lang=EN-US>RAID</span>条中的奇偶性进行读<span lang=EN-US>-</span>修改<span lang=EN-US>-</span>写入<span
  lang=EN-US>(</span>如果可能的话<span lang=EN-US>)</span>。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>hash_alg=hash-alg</span><span
  style='font-family:"Microsoft YaHei"'>，设置用于具有散列<span lang=EN-US>b</span>树目录的文件系统的默认哈希算法。接受的有效算法有：<span
  lang=EN-US>legacy</span>、<span lang=EN-US>half_md4</span>和<span lang=EN-US>tea</span>。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>mount_opts=mount_option_string</span><span
  style='font-family:"Microsoft YaHei"'>，设置一组默认的挂载选项，这些选项将在挂载文件系统时使用。与使用<span
  lang=EN-US>-o</span>选项指定的基于位掩码的默认挂载选项不同，<span lang=EN-US>mount_option_string</span>是最大长度为<span
  lang=EN-US>63</span>字节的任意字符串，存储在超级块中。<span lang=EN-US>ext 4</span>文件系统驱动程序将首先应用基于位掩码的默认选项，然后在解析从<span
  lang=EN-US>mount (8)</span>程序传递的挂载选项之前解析<span lang=EN-US>mount_option_string</span>。此超级块设置仅在<span
  lang=EN-US>2.6.35</span>以上内核中执行，而<span lang=EN-US>ext2</span>和<span
  lang=EN-US>ext3</span>文件系统驱动程序则完全不执行。</span></p>
  <p class=MsoNormal><span lang=EN-US style='font-family:"Microsoft YaHei"'>test_fs</span><span
  style='font-family:"Microsoft YaHei"'>，在文件系统超级块中设置一个标志，指示可以使用试验性内核代码<span
  lang=EN-US>(</span>如<span lang=EN-US>ext4dev</span>文件系统<span lang=EN-US>)</span>挂载它。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>^test_fs</span><span style='font-family:
  "Microsoft YaHei"'>，清除<span lang=EN-US>test_fs</span>标志，指示仅使用<span
  lang=EN-US>production-level</span>文件系统代码挂载文件系统。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-f</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>强制执行。当从具有外部日志的文件系统<span
  lang=EN-US>(</span>或损坏到似乎有外部日志<span lang=EN-US>)</span>而外部日志不可用的文件系统中删除<span
  lang=EN-US>Has_Journal</span>文件系统特性时，此选项非常有用。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-g</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>group</u></span></p>
  </td>
  <td width="70%" valign=top style='width:70.0%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置可以使用保留文件系统块的组。<span
  lang=EN-US>group</span>参数可以是数值<span lang=EN-US>gid</span>或组名。如果给定组名，则在将其存储在超级块之前，将其转换为数字<span
  lang=EN-US>gid</span>。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-i </span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> interval-between-checks[d|m|w]</span></p>
  </td>
  <td width="70%" valign=top style='width:70.0%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>调整两个文件系统检查之间的最大时间。没有后缀或<span
  lang=EN-US>d</span>将数字间隔检查解释为天，<span lang=EN-US>m</span>为月，<span lang=EN-US>w</span>为周<span
  lang=EN-US>.</span>值为零将禁用与时间相关的检查。强烈建议启用<span lang=EN-US>-c(mount-count-dependent)</span>检查或<span
  lang=EN-US>-i(time-dependent)</span>检查，以强制对文件系统进行定期完整的<span lang=EN-US>e2fsck(8)</span>检查。如果不这样做，可能会导致文件系统损坏<span
  lang=EN-US>(</span>由于磁盘、电缆、内存或内核错误<span lang=EN-US>)</span>而忽略，最终导致数据丢失或损坏。</span></p>
  </td>
 </tr>
 <tr>
  <td width="30%" valign=top style='width:30.0%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-j</span></b></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>向文件系统添加<span
  lang=EN-US>ext3</span>日志，如果没有指定<span lang=EN-US>-J</span>选项，则将使用默认日志参数来创建存储在文件系统中的适当大小的日志<span
  lang=EN-US>(</span>给定文件系统的大小<span lang=EN-US>)</span>。请注意，您必须使用具有<span
  lang=EN-US>ext3</span>支持的内核才能实际使用日志。</span></p>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>如果此选项用于在已安装的文件系统上创建日志，则将在文件系统的顶层目录中创建一个不可变的文件，即日志，因为它是在安装文件系统时创建日志<span
  lang=EN-US>inode</span>的唯一安全方法。虽然<span lang=EN-US>ext 3</span>日志是可见的，但在安装文件系统时删除它或修改它是不安全的；因此，文件被标记为不可变。在检查未挂载的文件系统时，<span
  lang=EN-US>e2fsck(8)</span>将自动将<span lang=EN-US>.Journal</span>文件移动到不可见的保留日志<span
  lang=EN-US>inode</span>。对于除根文件系统以外的所有文件系统，这应该在下一个重新启动周期中自动和自然地发生。由于根文件系统是只读安装的，因此必须从救援软盘上运行<span
  lang=EN-US>e2fsck(8)</span>才能完成此转换。</span></p>
  </td>
 </tr>
 <tr>
  <td width="30%" valign=top style='width:30.0%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-J</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>journal-options</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>重写默认<span
  lang=EN-US>ext 3</span>日志参数。日记选项是逗号分隔的，可以使用相等号<span lang=EN-US>(‘=’)</span>符号进行参数化。支持下列日志选项：</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>size=journal-size</span><span
  style='font-family:"Microsoft YaHei"'>，创建一个存储在文件系统中的日志，大小<span lang=EN-US>journal-size</span>。日志的大小必须至少为<span
  lang=EN-US>1024</span>个文件系统块<span lang=EN-US>(</span>如果使用<span lang=EN-US>1k</span>块，则为<span
  lang=EN-US>1MB</span>；如果使用<span lang=EN-US>4k</span>块，则为<span lang=EN-US>4MB)</span>。并且可能不超过<span
  lang=EN-US>102</span>，<span lang=EN-US>400</span>个文件系统块。文件系统中必须有足够的空闲空间来创建这样大小的日志。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>device=external-journal</span><span
  style='font-family:"Microsoft YaHei"'>，将文件系统附加到位于外部日志上的日志块设备上。外部日志必须已使用以下命令创建“<b><span
  lang=EN-US>mke2fs  -O  journal_dev  external-journal</span></b>”。注意，外部日志必须与将要使用的文件系统以相同的块大小进行格式化。此外，虽然支持将多个文件系统附加到单个外部日志，但<span
  lang=EN-US>Linux</span>内核和<span lang=EN-US>e2fsck(8)</span>目前还不支持共享外部日志。除了直接指定设备名称之外，还可以通过<span
  lang=EN-US>LABEL=label</span>或<span lang=EN-US>UUID=UUID</span>指定外部日志，以便通过存储在日志开头的<span
  lang=EN-US>ext2</span>超级块中的卷标签或<span lang=EN-US>UUID</span>来定位外部日志。使用<span
  lang=EN-US>dupe2fs(8)</span>显示日志设备的卷标签和<span lang=EN-US>UUID</span>。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>size</span><span style='font-family:
  "Microsoft YaHei"'>和<span lang=EN-US>device</span>只能有一个。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-L</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>volume-label</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置文件系统卷标。<span
  lang=EN-US>ext2</span>文件系统标签最多可以长达<span lang=EN-US>16</span>个字符；如果卷标签超过<span
  lang=EN-US>16</span>个字符，<span lang=EN-US>tune2fs</span>将截断它并打印警告。卷标签可由<span
  lang=EN-US>mount(8)</span>、<span lang=EN-US>fsck(8)</span>和<span lang=EN-US>/etc/fstab(5)(</span>可能还有其他<span
  lang=EN-US>)</span>使用，方法是指定<span lang=EN-US>LABEL=volume_label</span>，而不是<span
  lang=EN-US>/dev/hda 5</span>这样的块特殊设备名。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-m</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>  <u>reserved-blocks-percentage</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置只能由特权进程分配的文件系统百分比。保留一些文件系统块以供特权进程使用是为了避免文件系统碎片，并允许系统守护进程<span
  lang=EN-US>(</span>如<span lang=EN-US>syAdd.1-d(8)</span>在非特权进程被阻止写入文件系统之后继续正确运行。通常，保留块的默认百分比是<span
  lang=EN-US>5%</span>。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-M</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>last-mounted-directory</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置最后的挂载目录</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-o</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> [^]<u>mount-option</u>[,...]</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>在文件系统中设置或清除指定的默认挂载选项。默认的挂载选项可以被“<span
  lang=EN-US>/etc/fstab</span>”<span lang=EN-US>(5)</span>中指定的挂载选项覆盖，也可以在命令行参数上覆盖<span
  lang=EN-US>mount(8)</span>。旧内核可能不支持此特性；特别是，在<span lang=EN-US>2.4.20</span>之前的内核几乎肯定会忽略超级块中的默认挂载选项字段。可以通过用逗号分隔功能来清除或设置多个挂载选项。以插入字符<span
  lang=EN-US>(‘^’)</span>为前缀的挂载选项将在文件系统的超级块中清除；没有前缀字符的挂载选项或以<span lang=EN-US>‘+’</span>作为前缀的挂载选项将添加到文件系统中。可以使用<span
  lang=EN-US>tune2fs</span>设置或清除下列挂载选项：</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>debug</span><span style='font-family:
  "Microsoft YaHei"'>，<span lang=EN-US>bsdgroups</span>，<span lang=EN-US>user_xattr</span>，<span
  lang=EN-US>acl</span>，<span lang=EN-US>uid16</span>，<span lang=EN-US>journal_data</span>，<span
  lang=EN-US>journal_data_ordered</span>，<span lang=EN-US>journal_data_writeback</span>，<span
  lang=EN-US>nobarrier</span>，<span lang=EN-US>block_validity</span>，<span
  lang=EN-US>discard</span>，<span lang=EN-US>nodelalloc</span></span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-O</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> [^]<u>feature</u>[,...]</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置或清除文件系统中指定的文件系统特性<span
  lang=EN-US>(</span>选项<span lang=EN-US>)</span>。多个文件系统特性可以通过用逗号分隔特性来清除或设置。以插入字符<span
  lang=EN-US>(‘^’)</span>为前缀的文件系统特性将在文件系统的超级块中清除；没有前缀字符或前缀为‘<span lang=EN-US>+</span>’的文件系统特性将添加到文件系统中。可以使用<span
  lang=EN-US>tune2fs</span>设置或清除下列文件系统特性：<span lang=EN-US>dir_index</span>，<span
  lang=EN-US>filetype</span>，<span lang=EN-US>flex_bg</span>，<span lang=EN-US>has_journal</span>，<span
  lang=EN-US>large_file</span>，<span lang=EN-US>resize_inode</span>，<span
  lang=EN-US>sparse_super</span>，<span lang=EN-US>uninit_bg</span>。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-r</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>reserved-blocks-count</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置保留文件系统块的数目</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-T</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>time-last-checked</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>使用<span
  lang=EN-US>e2fsck</span>设置上次检查文件系统的时间。时间使用当前<span lang=EN-US>(</span>本地<span
  lang=EN-US>)</span>时区进行解释。这在使用逻辑卷管理器对文件系统进行一致快照的脚本中很有用，然后在空闲时间检查文件系统，以确保它没有因为硬件问题而损坏，等等。如果文件系统是干净的，那么这个选项可以用来设置原始文件系统上的最后一次检查时间。最后一次检查的格式是国际日期格式，有一个可选的时间说明符，即<span
  lang=EN-US>YYYYMMDD[HH[MM[SS]</span>。关键字<span lang=EN-US>Now</span>也被接受，在这种情况下，上一次检查时间将设置为当前时间。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-u</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>user</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置可以使用保留文件系统块的用户。用户可以是<span
  lang=EN-US>uid</span>或用户名。如果给定用户名，则将其转换为数字<span lang=EN-US>uid</span>，然后将其存储在超级块中。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-U</span></b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'> <u>UUID</u></span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>将文件系统的通用唯一标识符<span
  lang=EN-US>(UUID)</span>设置<span lang=EN-US>UUID</span>。<span lang=EN-US>UUID</span>的格式是由连字符分隔的一系列十六进制数字，如<span
  lang=EN-US>“c1b9d5a2-f162-11cf-9ece-0020afc76f16”</span>。<span lang=EN-US>UUID</span>参数也可能是以下内容之一：</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>clear</span><span style='font-family:
  "Microsoft YaHei"'>，清除<span lang=EN-US>UUID</span>。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>random</span><span style='font-family:
  "Microsoft YaHei"'>，产生一个随机的<span lang=EN-US>UUID</span>。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>time</span><span style='font-family:
  "Microsoft YaHei"'>，产生一个基于时间的<span lang=EN-US>UUID</span>。</span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>3</span></b><b><span style='font-family:
"Microsoft YaHei"'>、实例</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>1</span><span
style='font-family:"Microsoft YaHei"'>）查看<span lang=EN-US>sdb4</span>的详细信息 </span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  ~]# <b>tune2fs -l /dev/sdb4</b></span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>tune2fs 1.41.12
  (17-May-2010)</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Filesystem volume
  name:   hello</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Last mounted
  on:          &lt;not available&gt;</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Filesystem
  UUID:          e2a0cb30-f3ca-47de-92b8-780296960d93</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>…</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>First
  inode:              11</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Inode size:            
  128</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Default directory
  hash:   half_md4</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Directory Hash
  Seed:      4930bf0f-771e-4940-9255-bee40d138079</span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>2</span><span
style='font-family:"Microsoft YaHei"'>）设置最大挂载次数 </span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  ~]# <b>tune2fs -c 30 /dev/sdb4       //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>设置最大挂载次数</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>tune2fs 1.41.12
  (17-May-2010)</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Setting maximal
  mount count to 30</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>You have new mail
  in /var/spool/mail/root</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  ~]# <b>tune2fs -l /dev/sdb4         //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>查看详细信息</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>tune2fs 1.41.12
  (17-May-2010)</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Filesystem volume
  name:   hello</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Maximum mount
  count:      30                         //</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>最大挂载次数已经修改为</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>30</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Directory Hash
  Seed:      4930bf0f-771e-4940-9255-bee40d138079</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  ~]#       </span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal align=center style='text-align:center;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>Copyright@david 
zhytwj2018@163.com</span></p>

</div>

</body>

</html>
